package com.wlyuan.open.dto.order;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author lijing
 * @description 订单发货方信息
 */
@Data
public class OrderFromDTO implements Serializable {

    private static final long serialVersionUID = 1279290159317234114L;
    @ApiModelProperty(value = "发货方类型")
    private Integer customerType;

    @ApiModelProperty("发货方名称")
    private String customerName;
    @ApiModelProperty(value = "发货时间")
    private LocalDateTime fromTime;

    @ApiModelProperty(value = "联系人")
    private String contactName;

    @ApiModelProperty(value = "联系电话")
    private String contactMobile;

    @ApiModelProperty(value = "省编码")
    private String provinceCode;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市编码")
    private String cityCode;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "区编码")
    private String districtCode;

    @ApiModelProperty(value = "区")
    private String district;

    @Length(max = 100, message = "地址最多可输入100个字符")
    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "地址坐标")
    private String location;

    @Range(min = 0, max = 1, message = "地址坐标类型不存在")
    @ApiModelProperty(value = "地址坐标类型")
    private Integer locationType;

}
